home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Services Timeout.xpl < prev    next >
Text File  |  2002-10-16  |  1KB  |  51 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="2"
  3. "COUNT"="1"
  4. "UIPATH 1"="Startup/Shutdown\Shutdown\Windows NT/2K/XP\20) Services Shutdown"
  5. "NAME"="Service Timeout"
  6. "VERSION"="1.22"
  7. "OSVERSION"="0101011"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Timeout (sec)"
  10. "DESCRIPTION 1"="If this computer is shut down, Windows allows all services a specified time to end themselves."
  11. "DESCRIPTION 2"="After this time is reached any still running services will be shut down by Windows."
  12. "DESCRIPTION 3"="The default timeout is 20 seconds."
  13. "DESCRIPTION 4"="Please note: This settings is system-wide and affects all users on this computer."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18.  
  19.  
  20.  
  21.  
  22. sP="HKLM\System\CurrentControlSet\Control\WaitToKillServiceTimeout"
  23. Sub Plugin_Initialize 
  24.  i=RegReadValue(sp)
  25.  if IsEmpty(i)=false then
  26.     if IsNumeric(i) then
  27.        i=i/1000 
  28.        SetUIElement 1,i
  29.     end if
  30.  else
  31.     Disable
  32.  end if
  33. End Sub
  34.  
  35. Sub Plugin_CheckData(ElementIndex)
  36. End Sub
  37.  
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  i=GetUIElement(1)
  40.  if len(i)>0 then 
  41.     i=i*1000
  42.     Call RegWriteValue(sp,i,1)
  43.  end if
  44. End Sub
  45.  
  46. Sub Plugin_Terminate 
  47. End Sub
  48.  
  49.  
  50.  
  51.